﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace PosClient.Model
{
    [Index("{tablename}_orderPay_id", "OrderNo,PayCode,PayNo,TransNo", true)]
    [Table(Name = "t_order_pay{yyyyMM}", AsTable = "createtime=2025-02-01(1 month)")]
    public class OrderPay
    {
        [Column(IsPrimary = true, IsIdentity = true)]
        public long Id { get; set; }

        public long OrderId { get; set; }

        public string OrderNo { get; set; }

        public decimal OriginAmount { get; set; }

        public decimal PayAmount { get; set; }

        public decimal ExchangeAmount { get; set; }

        public int PayType { get; set; }

        public string PayName { get; set; }

        public string PayNo { get; set; }

        public string TransNo { get; set; }

        public string RequestNo { get; set; }

        public DateTime CreateTime { get; set; }

        public string PayCode { get; set; }

        public string OpenId { get; set; }

    }
}
